import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import QtQuick.Shapes 1.15

Item {
    id: root
    width: 691
    height: 350
    GridLayout{
        id: deviceStatusLayout
        rows: 2
        columns: 2
        anchors.top: parent.top
        anchors.topMargin: 30
        anchors.horizontalCenter: parent.horizontalCenter
        rowSpacing: 5
        columnSpacing:10

        Text {
            id: lblDeviceConnStatus
            Layout.row: 0
            Layout.column: 0
            text: qsTr("传感器连接状态")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: deviceConnStatus
            Layout.row: 0
            Layout.column: 1
            text: mymodbus.sensorConnStatus===0?qsTr("未连接"):qsTr("连接")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: lblDeviceRevStatus
            Layout.row: 1
            Layout.column: 0
            text: qsTr("传感器上次回复")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: deviceRevStatus
            Layout.row: 1
            Layout.column: 1
            text: mymodbus.sensorLastRevTime
            color: "white"
            font.pixelSize: 28
        }


    }

}

